﻿<?php
include "includeFiles.php";
if(empty($cateid)) $cateid=11010;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">

<link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/MagicZoom.css" rel="stylesheet" type="text/css" media="screen" />
<script src="js/mz-packed.js" type="text/javascript"></script> 
<script language="javascript" src="js/MSClass.js"></script>
</head>
<body>
<?php include_once('header.php');?>


<?php include_once('ad.php');?>

<div class="main mid">

	  	   	<?php	$value=$info->getProOne($prid);?>
   <div class="main_left">
         <a href="uploadfile/product_b/<?=$value[0]['Photos']?>" id="zoom1" rel="zoom-position: right;zoom-width:464px;zoom-height:550px;" class="MagicZoom"><img src="uploadfile/product_b/<?=$value[0]['Photos']?>" border="0" width="500" height="550" /></a>
         <div id="zoom1-big"></div>
   </div>
   <div class="main_right">
      <div class="main_nav"><a href="index.php">首页</a> > <a href="products.php">产品展厅</a> > 优雅 > <?=$alink=$info->getProLinks($cateid)?></div>
      <div class="main_bt">

	  <?=$value[0]['ProductName']?>
	  
	  
	  
		
	  </div>
         <div class="main_txt">
		
            <?=$value[0]['Note']?>
			 <br/>
				<input type="button" value="加入礼物兑换车" onclick="location.href='m_cart.php?prid=<?=$_GET['prid']?>&action=add' "style="cursor:pointer" />
		
      </div>
   </div>
</div>
<div class="newpro mid">
   <div class="newpro_bt"><img src="images/probt.jpg" border="0" /></div>
<div class="newpro_main">
        <div class="newpro_left"><img id="left2" src="images/l.jpg" alt="向左滚动" border="0" /></div>
        <div id="IndexProShow" class="newpro_mid">
<table style="DISPLAY: inline" cellspacing="0" cellpadding="0" width="100%" height="89" border="0">
                <tbody>
                  <tr>
				  
				  	<?php	
		$SQL=" select * from hy_b_sys_products where CateID=$cateid order by SysProductsID DESC LIMIT 20 ";
		$objDb->query($SQL);
		$result = $objDb->get_data();
		if($result){
		foreach($result as $key=>$value){
	 ?>
                <td height="89"  valign="middle">
                <div class="newpro_pic"><a href="product_detail.php?prid=<?=$value['SysProductsID']?>&cateid=<?=$value['CateID']?>"><img src="admin/pic.php?imagename=../uploadfile/product_b/<?=$value['Photos']?>&amp;imagewidth=79&amp;imageheight=87&amp;cuteit=0" width="79" height="87"></a>
                </div>
           <? }}?>
</tr>
                </tbody>
              </table>
       </div>
        <div class="newpro_right"><img id="right2" src="images/r.jpg" alt="向右滚动" border="0" /></div>
     </div>
<script language="javascript">

var Marquee1=new Marquee("IndexProShow");
Marquee1.Direction="left";
Marquee1.Step=1;
Marquee1.Width=940;
Marquee1.Height=90;
Marquee1.Timer=20;
Marquee1.ScrollStep=1;//此句允许鼠标控制
Marquee1.Start();

var left2 = document.getElementById("left2")
var right2 = document.getElementById("right2")
left2.onmouseover=function(){Marquee1.Direction=2}
left2.onmouseout=left2.onmouseup=function(){Marquee1.Step=Marquee1.BakStep}
left2.onmousedown=right2.onmousedown=function(){Marquee1.Step=Marquee1.BakStep+5}
right2.onmouseover=function(){Marquee1.Direction=3}
right2.onmouseout=right2.onmouseup=function(){Marquee1.Step=Marquee1.BakStep}

</script>
</div>
<?php include_once('footer.php');?>
</body>
</html>
